﻿<script type="text/javascript" src="<?php echo URL::base() . 'media/js/ckeditor/ckeditor.js' ?>"></script>
<form method="post" action="<?php echo $action ?>">
    <label for="title">Cím</label>
    <input type="text" name="title" id="title" <?php if (isset($news))
    echo('value=' . $news->title); ?> /><br/>
    <label for="lead">Kivonat</label>
    <input type="textarea" name="lead" id="lead" value="<?php if (isset($news))
    echo $news->lead; ?>" /><br/>
    <label for="description">Szöveg</label>
<?php echo $ckeditor->editor("description", @$news->description, $config) ?><br />
    <label for="active">Kikerüljön a híroldalra?</label>
    <input type="checkbox" name="active" id="active" <?php if ($news->active == 1)
    echo 'checked="yes"' ?>></input><br/><br/>	
    <input type="submit" value="Mentés" />
</form>